package com.lj.ljminsu.userClient.service.impl;

import com.lj.ljminsu.userClient.bean.OrderBean;
import com.lj.ljminsu.userClient.dao.OrderListDao;
import com.lj.ljminsu.userClient.service.IOrderListService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OrderListServiceImpl implements IOrderListService {

    @Resource
    private OrderListDao orderListDao;

    @Override
    public List<OrderBean> selectOrderListByUserPhone(String userPhone) {
        List<OrderBean> orderBeans = orderListDao.selectOrderListByUserPhone(userPhone);
        return orderBeans;
    }


    @Override
    public void deleteOrderByOrderId(Integer orderId) {
        orderListDao.deleteOrderByOrderId(orderId);
    }
}
